import java.util.ArrayList;
import java.util.List;
//单词规律
public class demo42 {
  /*  class Solution {
        public boolean wordPattern(String p, String s) {
            Map<Character,String> ch = new HashMap<>();
            String[] ss = s.split(" ");
            int len1 = p.length();
            int len2 = ss.length;
            if(len1 != len2) return false;
            for(int i = 0;i<len1;i++)
            {
                char x = p.charAt(i);
                if(!ch.containsKey(x))
                {
                    if(ch.containsValue(ss[i])){
                        return false;
                    }
                    ch.put(x,ss[i]);
                }
                else{
                    if(!ch.get(x).equals(ss[i]))
                        return false;
                }
            }
            return true;

        }
    }*/
}
